package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.UserPoints;
import com.ruoyi.common.core.domain.entity.UserPointsLog;
import com.ruoyi.common.core.domain.entity.WithdrawalRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface WithdrawalRecordMapper {
    void insertWithdrawalRecord(WithdrawalRecord withdrawalRecord);
    void updateWithdrawalRecord(WithdrawalRecord withdrawalRecord);
    //查询提现记录
    List<WithdrawalRecord> selectWithdrawalRecordByUserId(Long userId);
    //根据id查询提现记录
    WithdrawalRecord selectWithdrawalRecordById(Long id);
    //查询审核通过的提现总金额
    BigDecimal selectSumAmount();
}
